﻿* Encoding: UTF-8.
USE ALL. 
COMPUTE filter_$=(family="radical-right"). 
VARIABLE LABELS filter_$ 'family="radical-right" (FILTER)'. 
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. 
FORMATS filter_$ (f1.0). 
FILTER BY filter_$. 
EXECUTE.

 
* Chart Builder. 
GGRAPH 
  /GRAPHDATASET NAME="graphdataset" VARIABLES=decade MEANCI(averagenovotes, 
    95)[name="MEAN_averagenovotes" LOW="MEAN_averagenovotes_LOW" HIGH="MEAN_averagenovotes_HIGH"] 
    MISSING=LISTWISE REPORTMISSING=NO 
  /GRAPHSPEC SOURCE=INLINE. 
BEGIN GPL 
  SOURCE: s=userSource(id("graphdataset")) 
  DATA: decade=col(source(s), name("decade"), unit.category()) 
  DATA: MEAN_averagenovotes=col(source(s), name("MEAN_averagenovotes")) 
  DATA: LOW=col(source(s), name("MEAN_averagenovotes_LOW")) 
  DATA: HIGH=col(source(s), name("MEAN_averagenovotes_HIGH")) 
  GUIDE: axis(dim(1), label("decade")) 
  GUIDE: axis(dim(2), label("Mean average share of no votes (%)")) 
  GUIDE: text.title(label("Simple Error Bar Mean of average share of no votes (%) by decade")) 
  GUIDE: text.footnote(label("Error Bars: 95% CI")) 
  SCALE: linear(dim(2), include(0)) 
  ELEMENT: point(position(decade*MEAN_averagenovotes)) 
  ELEMENT: interval(position(region.spread.range(decade*(LOW+HIGH))), shape.interior(shape.ibeam)) 
END GPL.
